<template>
<div class="screen-container">
  <h3>OUR SERVICES</h3>
  <h4>Explore Our Services</h4>
  <div class="service-list">
    <template v-for="(item,index) in data" :key="item.title">
      <div class="service-box">
        <el-card>
          <div class="img-box">
            <img :src="`/static/picture/service-${ index + 1 }.jpg`" alt="">
          </div>
          <h5>{{ item.title }}</h5>
          <p>{{ item.content }}</p>
          <div class="btn-box">
            <div class="right-arrow">
              <ep-Right />
            </div>
          </div>
        </el-card>
      </div>
    </template>
  </div>
</div>
</template>

<script setup>
import { reactive } from 'vue'

const data = reactive([
  {
    title: 'Air Freight',
    content: 'Stet stet justo dolor sed duo. Ut clita sea sit ipsum diam lorem diam.'
  },
  {
    title: 'Ocean Freight',
    content: 'Stet stet justo dolor sed duo. Ut clita sea sit ipsum diam lorem diam.'
  },
  {
    title: 'Road Freight',
    content: 'Stet stet justo dolor sed duo. Ut clita sea sit ipsum diam lorem diam.'
  },
  {
    title: 'Train Freight',
    content: 'Stet stet justo dolor sed duo. Ut clita sea sit ipsum diam lorem diam.'
  },
  {
    title: 'Customs Clearance',
    content: 'Stet stet justo dolor sed duo. Ut clita sea sit ipsum diam lorem diam.'
  },
  {
    title: 'Warehouse Solutions',
    content: 'Stet stet justo dolor sed duo. Ut clita sea sit ipsum diam lorem diam.'
  },
])
</script>

<style lang="scss" scoped>
$base-color: #ff3e41;
h3 {
  color: #51CFED;
}

h4 {
  padding: 17px 0;
  padding-bottom: 24px;
  font-size: 36px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;

  .service-box {
    width: 33.33%;
    padding: 12px 12px;
    box-sizing: border-box;
    cursor: pointer;

    .img-box {
      width: 100%;
      height: 100%;

      img {
        width: 100%;
        height: 100%;
      }
    }

    h5 {
      text-align: left;
      font-size: 24px;
      line-height: 24px;
      padding: 12px 0;
    }

    p {
      margin-top: 7px;
      color: gray;
      font-size: 18px;
      text-align: left;
    }

    .btn-box {
      margin-top: 16px;
      text-align: left;

      .right-arrow {
        display: inline-block;
        cursor: pointer;
        background-color: $base-color;
        width: 32px;
        padding-left: 10px;
        padding-top: 7px;
        color: white;
        line-height: 27px;
        border-radius: 0 24px 24px 0;
      }
    }
  }
}
</style>
